package tech.jabari.user.mapper;

import org.apache.ibatis.annotations.Insert;
import tech.jabari.user.entity.User;

public interface UserMapper {

    @Insert("insert into t_user(username,pwd,email,phone,sex,birth,headImg)values" +
            "(#{username} , #{pwd} , #{email} , #{phone} , #{sex} , #{birthStr} , #{headImg} )")
    Integer insertUser(User user);

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}
